<h1>Editing comment</h1>

<% form_for @comment, :url => comment_path( @project.name, @issue.local_id, @comment ),
                      :html => { :multipart => true },
                      :class => 'form' do |form| -%>
  <%= form.error_messages %>
  <dl>
    <dt><%= form.label :summary, 'Summary', :class => 'required' %></dt>
    <dd><%= form.text_field :summary %><dd>
    <dt><%= form.label :details %></dt>
    <dd><%= form.text_area :details %></dd>
  </dl>

  <%= render :partial => 'shared/edit_attachments', :locals => { :attachments => @comment.attachments } %>

  <%= form.submit 'Save Changes', :class => 'submit' %>
  <small><%= link_to 'Cancel', issue_url( @project.name, @issue.local_id ) %></small>
<% end -%>
